﻿using System.ComponentModel;

namespace SaaS.Model.Enums
{
    /// <summary>
    /// 总管理日志来源记录
    /// </summary>
    public enum SystemLoggerSource : byte
    {
        /// <summary>
        /// 无指定类型
        /// </summary>
        [Description("未知")]
        None,
        /// <summary>
        /// 登录类型
        /// </summary>
        [Description("登陆")]
        Login,
        [Description("操作人")]
        Admin,
        [Description("角色")]
        Role,
        /// <summary>
        /// 站点
        /// </summary>
        [Description("站点")]
        Site,
        [Description("系统配置")]
        Setting,

        Permission
    }
    public enum AdminLoggerSource : byte
    {
        /// <summary>
        /// 无指定类型
        /// </summary>
        [Description("未知")]
        None,
        /// <summary>
        /// 授权
        /// </summary>
        [Description("授权")]
        Authorization,
        /// <summary>
        /// 登录类型
        /// </summary>
        [Description("登陆")]
        Login,
        [Description("操作人")]
        Admin,
        [Description("角色")]
        Role,
    }
    public enum ClientLoggerSource : byte
    {
        /// <summary>
        /// 记录
        /// </summary>
        INFO,
        /// <summary>
        /// 登录注册
        /// </summary>
        LOGIN_REGISTER,
        /// <summary>
        /// 会员信息错误
        /// </summary>
        USER_ERROR

    }
    public enum LogSource : byte
    {
        /// <summary>
        /// 无指定类型
        /// </summary>
        [Description("未知")]
        None,
        /// <summary>
        /// 登录类型
        /// </summary>
        [Description("登陆")]
        Login,
        /// <summary>
        /// 操作
        /// </summary>
        [Description("操作")]
        Peration,
        /// <summary>
        /// 业务
        /// </summary>
        [Description("业务")]
        Business,
        /// <summary>
        /// 权限
        /// </summary>
        [Description("权限")]
        Permission,
        /// <summary>
        /// 授权
        /// </summary>
        [Description("授权")]
        Authorization,
        /// <summary>
        /// 逻辑
        /// </summary>
        [Description("逻辑")]
        Logic,
        /// <summary>
        /// 访问
        /// </summary>
        [Description("访问")]
        Visit,
        [Description("总管理员操作")]
        System
    }

}
